import tsconfigPaths from 'vite-tsconfig-paths'

export default defineNuxtConfig({
  css: ['@/assets/css/main.css'], // 确认文件存在
  vite: {
    plugins: [tsconfigPaths()]
  },
  modules: [
    '@nuxtjs/color-mode',
    '@nuxtjs/tailwindcss',
    '@nuxt/eslint'
  ],
  colorMode: {
    classSuffix: '',
    preference: 'system',
    fallback: 'light'
  },
  app: { 
    head: {
      title: "DHL's Blog",
      meta: [
        { charset: 'utf-8' },
        { name: 'viewport', content: 'width=device-width, initial-scale=1' },
        { name: 'description', content: '个人博客 - 分享技术与生活' }
      ],
      link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
    }
  }
})
